package io.renren.modules.question.dto.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @Author liangbaigao
 * @Date 2022/10/6 17:04
 */
@Data
public class Message {

    /**
     * 问卷id
     */
    @ApiModelProperty("问卷id 更新时传 新增无需传")
    private Long id;

    /**
     * 问卷名称
     */
    @NotBlank
    @Length(max = 30)
    @ApiModelProperty(value = "问卷名称",required = true)
    private String questionName;

    /**
     * 问卷状态 0未发布 1已发布
     */
    @ApiModelProperty("问卷状态 0未发布 1已发布")
    @Min(value = 0)
    @Max(value = 1)
    private Integer state;
}
